enum Color {Red,Green,Blue}
let bum:Color=Color.Green
console.log(Color,"123");

console.log(Color[0],"520");

console.log(bum);
enum Age {zsr=25,xiaobai,xiaoxv}
console.log(Age,"Age");
console.log(Age[25],"888");

enum num {arr="24",brr="29",crr="27"}
console.log(num,"num");

function setValue(value:number):number{
    let a=value
    return a
}
console.log(setValue(111),"123");

let drr="12345"
let err:number=(<string>drr).length
let trr:number=(drr as string).length

console.log(trr);
